home *** CD-ROM | disk | FTP | other *** search
/ Clickx 53 / Clickx 53.iso / software / onmisbaretool / feedreaderv313 / stylesheet / atom_backup.xsl next >
Encoding:
Extensible Markup Language  |  2008-01-01  |  5.9 KB  |  236 lines

  1. ∩╗┐<?xml version="1.0" ?>
  2.  
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4.                 xmlns:feed="http://www.w3.org/2005/Atom"
  5.                 xmlns:frc="http://www.feedreader.com/ns/3.0/frc"
  6.                 xmlns:fr="http://www.feedreader.com/ns/3.0"
  7.                 version="1.0">
  8. <xsl:output method="html" />
  9.  
  10. <xsl:template match="/">
  11.  
  12. <html>
  13.   <head>
  14.     <title><xsl:value-of select="/feed:feed/feed:title"/></title>
  15.     <link rel="stylesheet" href="atom.css"/>
  16.     <style>
  17.  
  18. body {
  19.  font-family: verdana, tahoma;
  20.  font-size: 0.7em;
  21.  line-height: 1.3em;
  22.  padding: 0;
  23.  margin: 0;
  24. }
  25.  
  26.  
  27. a, a:link, a:active, a:visited {
  28.  text-decoration: none;
  29.  color: #0088ff;
  30. }
  31.  
  32. div.entry {
  33.  padding: 0 20px 20px 25px;
  34.  border-bottom: 1px solid #ddd;
  35. }
  36.  
  37. div.content img {
  38. }
  39.  
  40. div.active {
  41.  background-color: #f1f5fa;;
  42. }
  43.  
  44. .read .title a {
  45.  color: #aaa;
  46. }
  47.  
  48.  
  49. .read .content {
  50.  color: #555;
  51. }
  52.  
  53. div.entry .read .title a {
  54.  color: gray;
  55. }
  56.  
  57. .header {
  58.  padding-top: 20px;
  59.  margin: 0 0 0.2em 0;
  60. }
  61.  
  62. .title {
  63.  font-size: 1.6em;
  64.  font-family: arial, verdana, tahoma;
  65.  font-weight: bold;
  66.  letter-spacing: -1px;
  67.  line-height: 1.1em;
  68. }
  69.  
  70. div.details {
  71.  color: gray;
  72.  margin-bottom: 0.5em;
  73. }
  74. div.clear {
  75.  clear:both;
  76.  height: 1px;
  77.  width: 1px;
  78.  font-size: 1px;
  79.  line-height: 1px;
  80. }
  81. span.modified, span.author, span.category {
  82. }
  83.  
  84. .status a {
  85.  display:block;
  86.  line-height: 0;
  87.  font-size: 0;
  88.  width: 8px; 
  89.  height: 8px;
  90.  margin-top: -1.5em;
  91.  background-image: url('<xsl:value-of select="/feed:feed/fr:imagebase"/>stylesheet/unread_8x8.png');
  92.  background-repeat: no-repeat;
  93. }
  94.  
  95. .read .status a {
  96.  background-image: url('<xsl:value-of select="/feed:feed/fr:imagebase"/>stylesheet/read_8x8.png');
  97. }
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. </style>
  105. <base>    
  106. <xsl:attribute name="href"><xsl:value-of select="/feed:feed/feed:entry/feed:source/feed:link[@rel='alternate'][1]/@href"/>/</xsl:attribute>
  107. </base> 
  108.   </head>    
  109.   <body>
  110.   <script type="text/javascript">
  111.   var imagebase='file://<xsl:value-of select="/feed:feed/fr:imagebase"/>';
  112.   </script>
  113.   <xsl:apply-templates select="feed:feed"/>
  114.   </body>
  115. </html>
  116. </xsl:template>
  117.  
  118. <xsl:template match="feed:feed">
  119.   <xsl:apply-templates select="feed:entry"/>
  120. </xsl:template>
  121.  
  122. <xsl:template match="feed:entry">
  123.  
  124.     <div class="entry">
  125.         <xsl:attribute name="id">article<xsl:value-of select="fr:item_id"/></xsl:attribute>
  126.         <xsl:if test="fr:rtlEnabled = 1">
  127.             <xsl:attribute name="style">direction:RTL;font-size: 1.1em;font-family: tahoma;</xsl:attribute>
  128.         </xsl:if>
  129.         <xsl:if test="fr:status = 1">
  130.             <xsl:attribute name="class">entry read</xsl:attribute>
  131.         </xsl:if>
  132.                 
  133.         <div class="header">
  134.  
  135.         <span class="title">
  136.         <xsl:choose>
  137.                 <xsl:when test="string-length(feed:link/@href)>0">
  138.               <a>
  139.             <xsl:attribute name="href"><xsl:value-of select="feed:link/@href"/></xsl:attribute>
  140.             <xsl:value-of select="feed:title"/>
  141.             </a>
  142.                 </xsl:when>
  143.                 <xsl:otherwise>
  144.             <xsl:value-of select="feed:title"/>
  145.                 </xsl:otherwise>
  146.                  </xsl:choose>
  147.         </span>
  148.  
  149.           <span class="status">
  150.           <xsl:attribute name="style">float:right;</xsl:attribute>
  151.           <xsl:if test="fr:rtlEnabled = 1">
  152.             <xsl:attribute name="style">float:left;</xsl:attribute>
  153.           </xsl:if>
  154.           <xsl:if test="fr:rtlEnabled != 1">
  155.             <xsl:attribute name="style">float:right;</xsl:attribute>
  156.           </xsl:if>
  157.           
  158.           <a>
  159.              
  160.           <xsl:attribute name="id">togglelink<xsl:value-of select="fr:item_id"/></xsl:attribute>
  161.             <xsl:attribute name="href">fr:toggleread/<xsl:value-of select="fr:item_id"/></xsl:attribute>
  162.           <xsl:attribute name="onclick">this.blur();</xsl:attribute>
  163.                    
  164.           </a>
  165.           </span>
  166.         </div>
  167.     
  168.                 <div class="details">
  169.              <span class="updated"><xsl:value-of select="fr:updated"/>, </span>        
  170.             <xsl:if test="feed:author"> 
  171.                   <span class="author">
  172.                 <xsl:apply-templates select="feed:author"/>
  173.                 </span>
  174.             </xsl:if>
  175.             <a>
  176.             <xsl:attribute name="href">fr:edittags/<xsl:value-of select="fr:item_id"/></xsl:attribute>
  177.  
  178.             <img>
  179.             <xsl:attribute name="border">0</xsl:attribute>
  180.             <xsl:attribute name="hspace">5</xsl:attribute>
  181.             <xsl:attribute name="src">file://<xsl:value-of select="/feed:feed/fr:imagebase"/>stylesheet/tag_edit.png</xsl:attribute>
  182.             </img>
  183.             </a>
  184.                         
  185.             <xsl:if test="feed:category">
  186.                   <span class="category"> 
  187.                   <xsl:apply-templates select="feed:category"/>
  188.                 </span>
  189.                     </xsl:if>
  190.             <xsl:if test="feed:source">
  191.                   <span class="source"> 
  192.                 <a>
  193.                 <xsl:attribute name="href">fr:feed/<xsl:value-of select="feed:source/fr:feed_id"/></xsl:attribute>
  194.                 <xsl:value-of select="feed:source/feed:title"/>
  195.                 </a>
  196.                 <a>
  197.                 <xsl:attribute name="href">
  198.                 <!-- <xsl:for-each select = "feed:source/feed:link[@rel='alternate']"> --> 
  199.                     <xsl:value-of select = "feed:source/feed:link[@rel='alternate'][1]/@href"/> 
  200.                     <!-- </xsl:for-each> -->
  201.                 </xsl:attribute>
  202.                       
  203.             <img>
  204.             <xsl:attribute name="border">0</xsl:attribute>
  205.             <xsl:attribute name="hspace">5</xsl:attribute>
  206.             <xsl:attribute name="src">file://<xsl:value-of select="/feed:feed/fr:imagebase"/>stylesheet/world_go.png</xsl:attribute>
  207.             </img>
  208.                 </a>                                  
  209.                 </span>
  210.                                 
  211.                     </xsl:if>
  212.         </div>
  213.  
  214.     <xsl:if test="feed:content">
  215.         <div class="content">
  216.             <xsl:value-of disable-output-escaping="yes" select="feed:content"/>
  217.         </div>
  218.     </xsl:if>
  219.     <div class="clear" />
  220.     </div>
  221.  
  222. </xsl:template>
  223.  
  224. <xsl:template match="feed:category">
  225.   <a>
  226.   <xsl:attribute name="href">fr:<xsl:value-of select="./@scheme"/></xsl:attribute>
  227.   <xsl:value-of select="./@term"/>
  228.   </a>, 
  229. </xsl:template>
  230.  
  231. <xsl:template match="feed:author">
  232.   <xsl:value-of select="feed:name"/>, 
  233. </xsl:template>
  234.  
  235. </xsl:stylesheet>
  236.